from django.contrib import admin
from django.urls import path, include

from apps.users.views import UsernameCountView, RegisterView, LoginView, LogoutView, UserInfoView, EmailView, \
    EmailVerifyView, UserBrowseHistory

urlpatterns = [
    # 判断 用户名是否存在
    path('usernames/<uname:username>/count/', UsernameCountView.as_view()),
    # 注册的视图
    path('register/', RegisterView.as_view()),
    path('login/', LoginView.as_view()),
    path('logout/', LogoutView.as_view()),
    path('info/', UserInfoView.as_view()),
    path('emails/', EmailView.as_view()),
    path('emails/verification/', EmailVerifyView.as_view()),
    path('browse_histories/', UserBrowseHistory.as_view())
]
